﻿import BasicLayout from '../layouts/BasicLayout';
import UserLayout from '../layouts/UserLayout';
import BlankLayout from '../layouts/BlankLayout';

import Analysis from '../routes/Dashboard/Analysis';
import Monitor from '../routes/Dashboard/Monitor';
import Workplace from '../routes/Dashboard/Workplace';

import TableList from '../routes/List/TableList';
import CoverCardList from '../routes/List/CoverCardList';
import CardList from '../routes/List/CardList';
import FilterCardList from '../routes/List/FilterCardList';
import SearchList from '../routes/List/SearchList';
import BasicList from '../routes/List/BasicList';

import BasicProfile from '../routes/Profile/BasicProfile';
import AdvancedProfile from '../routes/Profile/AdvancedProfile';

import BasicForm from '../routes/Forms/BasicForm';
import AdvancedForm from '../routes/Forms/AdvancedForm';
import StepForm from '../routes/Forms/StepForm';
import Step2 from '../routes/Forms/StepForm/Step2';
import Step3 from '../routes/Forms/StepForm/Step3';

import Exception403 from '../routes/Exception/403';
import Exception404 from '../routes/Exception/404';
import Exception500 from '../routes/Exception/500';

import Success from '../routes/Result/Success';
import Error from '../routes/Result/Error';

import Login from '../routes/User/Login';
import Register from '../routes/User/Register';
import RegisterResult from '../routes/User/RegisterResult';



import UploadPage from '../routes/Upload/UploadPage';
import UploadPage2 from '../routes/Upload/UploadPage2';
import UploadPage3 from '../routes/Upload/UploadPage3';


//正式模块
import GoodsCategory from '../routes/goods/goodsCategory/GoodsCategory';
import QueryAdmin from '../routes/Admin/QueryAdmin';
import AdminPowerSetting from '../routes/Admin/AdminPowerSetting';
import PowerListDetails from '../routes/Admin/PowerListDetails';
import ManageSeller from '../routes/Admin/ManageSeller';
import AddSeller from '../routes/Admin/AddSeller';
import GoodsType from '../routes/goods/goodsType/GoodsType';
import GoodsTypeAttr from '../routes/goods/goodsType/GoodsTypeAttr';
import Brand from '../routes/goods/brand/Brand';
import GoodsManage from '../routes/goods/goodsManage/GoodsManage';
import AddGoods from '../routes/goods/goodsManage/AddGoods';
import GoodsGI from '../routes/goods/goodsManage/GoodsGI';
import GoodsSI from '../routes/goods/goodsManage/GoodsSI';
import GoodsOI from '../routes/goods/goodsManage/GoodsOI';
import GoodsAttr from '../routes/goods/goodsManage/GoodsAttr';
import  GoodsDetails from '../routes/goods/goodsManage/GoodsDetails'

import Supplier from '../routes/Admin/Supplier';
import AuditResult from '../routes/Admin/AuditResult';
import Distributor from '../routes/Admin/Distributor';
import SysParamConfig from '../routes/Admin/SysParamConfig';
import Shipping from '../routes/Admin/Shipping';
import IndexView from '../routes/Dashboard/IndexView';
import DistributeCountReport from '../routes/Report/DistributeCountReport';

import ShopManage from '../routes/Admin/Shop/ShopManage';
import ShopAddGoods from '../routes/Admin/Shop/ShopAddGoods'
import ShopSelectGoods from '../routes/Admin/Shop/ShopSelectGoods'
import SysPermission from '../routes/Admin/SysPermissionList'
import AdAddress from '../routes/Operation/AdAddress/AdAddress';
import AdConfigruation from '../routes/Operation/AdConfigruation/AdConfigruation'
import RecObject from '../routes/Operation/RecObject/RecObject';
//import AdminPowerSetting from '../routes/Admin/AdminPowerSetting';

import MemberList from "../routes/Member/MemberList";
import PaymentConfigruation from '../routes/Payment/PaymentConfiguration/PaymentConfigruation'
import OrderManage from "../routes/Order/OrderManage/OrderManage";
import OrderDetails from "../routes/Order/OrderManage/orderDetails";
import OptionResult from '../routes/Order/OrderManage/OptionResult';


import {queryAdminMenu}from '../services/adminManageApi';
import {requeste} from '../utils/request';
let data = [{
    component:BasicLayout,
    layout: 'BasicLayout',
    name: '首页', // for breadcrumb
    path: '',
    children:[{
        name: 'Dashboard',
        icon: 'dashboard',
        path: 'dashboard',
        children: [{
            name: '主页',
            path: 'index',
            component: IndexView,
        }]
    }]
    // children: [{
    //     name: '商品管理',
    //     icon: '',
    //     path: 'goods',
    //     children: [
    //         {
    //             name: '商品分类',
    //             path: 'category',
    //             component: GoodsCategory,
    //         },{
    //             name: '商品类型',
    //             path: 'goodsType',
    //             component: GoodsType,
    //         },{
    //             path:'goodsTypeAttr',
    //             component:GoodsTypeAttr,
    //         },{
    //             name: '商品品牌',
    //             path: 'brand',
    //             component: Brand,
    //         },{
    //             name: '商品列表',
    //             path: 'goodsManage',
    //             component: GoodsManage,
    //         }, {
    //             path: 'goodsDetails',
    //             component: GoodsDetails,
    //         },{
    //             path: 'addGoods',
    //             component: AddGoods,
    //             children: [{
    //                 path: 'goodsGI',
    //                 component: GoodsGI,
    //             }, {
    //                 path: 'goodsSI',
    //                 component: GoodsSI,
    //             }, {
    //                 path: 'goodsAttr',
    //                 component: GoodsAttr,
    //             }, {
    //                 path: 'goodsOI',
    //                 component: GoodsOI,
    //             }],
    //         }
    //     ]
    // },{
    //     name:'订单管理',
    //     path:'order',
    //     children: [{
    //         name: '订单管理',
    //         path: 'orderManage',
    //         component: OrderManage,
    //     }, {
    //         //name: '管理员权限设置',
    //         path: 'orderDetails',
    //         component: OrderDetails,
    //     },{
    //         //name:'操作结果'
    //         path:'optionResult',
    //         component:OptionResult,
    //     }]
    // },{
    //     name: '管理员管理',
    //     path: 'management',
    //     icon: 'warning',
    //     children: [{
    //         name: '查询管理员',
    //         path: 'queryManagement',
    //         component: QueryAdmin,
    //     }, {
    //         //name: '管理员权限设置',
    //         path: 'AdminPowerSetting',
    //         component: AdminPowerSetting,
    //     },{
    //         //name: '管理员可管理商家界面',a
    //         path: 'managementSeller',
    //         component: ManageSeller,
    //     }, {
    //         //name: '系统权限详情',
    //         path: 'PowerListDetails',
    //         component: PowerListDetails,
    //     },{
    //         //name:'添加管理员可管理商家'
    //         path:'managementAddSeller',
    //         component:AddSeller,
    //     }]
    // },{
    //     name: '系统参数配置',
    //     path: 'systemConfig',
    //     icon: 'warning',
    //     children: [{
    //         name: '系统参数配置',
    //         path: 'SystemConfig',
    //         component: SysParamConfig,
    //     },{
    //         name:'物流管理',
    //         path:'shipping',
    //         component:Shipping ,
    //     },{
    //         name:'系统权限列表',
    //         path:'sysPermissionList',
    //         component:SysPermission,
    //     }]
    // }, {
    //     name: '分销商管理',
    //     path: 'distributorManage',
    //     icon: 'warning',
    //     children: [{
    //         name: '分销商审核',
    //         path: 'distributor',
    //         component: Distributor,
    //     },{
    //         name:'店铺管理',
    //         path:'shopManage',
    //         component:ShopManage,
    //     },{
    //         name:'分销商统计报表',
    //         path:'count-report',
    //         component:DistributeCountReport,
    //     },{
    //         // name:'店铺商品发布',
    //          path:'shopAddGoods',
    //          component:ShopAddGoods,
    //     },{
    //         // name:'',
    //         path:'shopSelectGoods',
    //         component:ShopSelectGoods,
    //     },{
    //         // name:'审核结果',
    //         path:'auditResult',
    //         component:AuditResult,
    //     }]
    // },{
    //     name:'供应商管理',
    //     path:'supplierManage',
    //     icon:'warning',
    //     children:[{
    //         name: '供应商审核',
    //         path: 'supplier',
    //         component: require('../routes/Admin/Supplier'),
    //     }]
    // },{
    //     name: '支付管理',
    //     path: 'payment',
    //     icon: 'warning',
    //     children: [{
    //         name: '支付配置',
    //         path: 'paymentConfigruation',
    //         component: PaymentConfigruation
    //     }]
    // },{
    //     name: '运营管理',
    //     path: 'operation',
    //     icon: 'warning',
    //     children: [{
    //         name: '广告推荐位置配置',
    //         path: 'adConfigruation',
    //         component: AdConfigruation
    //     }, {
    //         name: '广告推荐转入地址',
    //         path: 'adAddress',
    //         component: AdAddress
    //     },{
    //         name: '推荐对象',
    //         path: 'recObject',
    //         component: RecObject,
    //     }]
    // },{
    //     name: '会员管理',
    //     path: 'member',
    //     icon: 'user',
    //     children: [{
    //         name: '会员列表',
    //         path: 'memberlist',
    //         component: MemberList,
    //     }]
    // },{
    //     name: 'Dashboard',
    //     icon: 'dashboard',
    //     path: 'dashboard',
    //     children: [{
    //         name:'主页',
    //         path:'index',
    //         component:IndexView,
    //     },{
    //         name: '分析页',
    //         path: 'analysis',
    //         component: Analysis,
    //     }, {
    //         name: '监控页',
    //         path: 'monitor',
    //         component: Monitor,
    //     }, {
    //         name: '工作台',
    //         path: 'workplace',
    //         component: Workplace,
    //     }, {
    //         name: '上传',
    //         path: 'uploadpage',
    //         component: UploadPage,
    //     }, {
    //         name: '上传2',
    //         path: 'uploadpage2',
    //         component: UploadPage2
    //     }, {
    //         name: '上传3',
    //         path: 'uploadpage3',
    //         component: UploadPage3
    //     }],
    // }, {
    //     name: '表单页',
    //     path: 'form',
    //     icon: 'form',
    //     children: [{
    //         name: '基础表单',
    //         path: 'basic-form',
    //         component: BasicForm,
    //     }, {
    //         name: '分步表单',
    //         path: 'step-form',
    //         component: StepForm,
    //         children: [{
    //             path: 'confirm',
    //             component: Step2,
    //         }, {
    //             path: 'result',
    //             component: Step3,
    //         }],
    //     }, {
    //         name: '高级表单',
    //         path: 'advanced-form',
    //         component: AdvancedForm,
    //     }],
    // }, {
    //     name: '列表页',
    //     path: 'list',
    //     icon: 'table',
    //     children: [{
    //         name: '查询表格',
    //         path: 'table-list',
    //         component: TableList,
    //     }, {
    //         name: '标准列表',
    //         path: 'basic-list',
    //         component: BasicList,
    //     }, {
    //         name: '卡片列表',
    //         path: 'card-list',
    //         component: CardList,
    //     }, {
    //         name: '搜索列表（项目）',
    //         path: 'cover-card-list',
    //         component: CoverCardList,
    //     }, {
    //         name: '搜索列表（应用）',
    //         path: 'filter-card-list',
    //         component: FilterCardList,
    //     }, {
    //         name: '搜索列表（文章）',
    //         path: 'search',
    //         component: SearchList,
    //     }],
    // }, {
    //     name: '详情页',
    //     path: 'profile',
    //     icon: 'profile',
    //     children: [{
    //         name: '基础详情页',
    //         path: 'basic',
    //         component: BasicProfile,
    //     }, {
    //         name: '高级详情页',
    //         path: 'advanced',
    //         component: AdvancedProfile,
    //     }],
    // }, {
    //     name: '结果',
    //     path: 'result',
    //     icon: 'check-circle-o',
    //     children: [{
    //         name: '成功',
    //         path: 'success',
    //         component: Success,
    //     }, {
    //         name: '失败',
    //         path: 'fail',
    //         component: Error,
    //     }],
    // }, {
    //     name: '异常',
    //     path: 'exception',
    //     icon: 'warning',
    //     children: [{
    //         name: '403',
    //         path: '403',
    //         component: Exception403,
    //     }, {
    //         name: '404',
    //         path: '404',
    //         component: Exception404,
    //     }, {
    //         name: '500',
    //         path: '500',
    //         component: Exception500,
    //     }],
    // }],
}, {
    component: UserLayout,
    layout: 'UserLayout',
    children: [{
        name: '帐户',
        icon: 'user',
        path: 'user',
        children: [{
            name: '登录',
            path: 'login',
            component: Login,
        }, {
            name: '注册',
            path: 'register',
            component: Register,
        }, {
            name: '注册结果',
            path: 'register-result',
            component: RegisterResult,
        }],
    }],
// }, {
//     component: BlankLayout,
//     layout: 'BlankLayout',
//     children: {
//         name: '使用文档',
//         path: 'http://pro.ant.design/docs/getting-started',
//         target: '_blank',
//         icon: 'book',
//     },
}];
export function getNavData() {
    return data;
}
export default data;